{ //=========Macro generated from canvas: c1/c1 //========= (Wed Aug 16 11:24:01 2006) by ROOT version5.08/00 TCanvas *c1 = new TCanvas("c1", "c1",32,386,500,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-0.153846,0.14,1.12821,0.54); c1->SetFillColor(10); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLeftMargin(0.16); c1->SetBottomMargin(0.15); c1->SetFrameFillColor(0); c1->SetFrameLineWidth(2); c1->SetFrameLineWidth(2); Double_t xAxis[14] = {0, 1000, 1146, 1148, 1500, 1747, 1748, 2000, 2247, 2248, 2500, 2897, 2898, 3000}; TH1* EvsC1 = new TH1F("EvsC1","SigmaE/E vs Cost 1",13, xAxis); EvsC1->SetBinContent( 3, 5.45); EvsC1->SetBinContent( 6, 4.29); EvsC1->SetBinContent( 9, 4.04); EvsC1->SetBinContent(12, 4.08); EvsC1->SetBinError( 3, 0.16); EvsC1->SetBinError( 6, 0.14); EvsC1->SetBinError( 9, 0.09); EvsC1->SetBinError( 12, 0.10); EvsC1->SetMarkerColor(4); EvsC1->SetMarkerStyle(25); EvsC1->SetMarkerSize(1.3); EvsC1->SetLineColor(4); EvsC1->SetLineWidth(1); g1 = new TGraphErrors(4); g1->SetLineColor(4); g1->SetLineWidth(2); g1->SetLineStyle(1); g1->SetMarkerColor(4); g1->SetMarkerStyle(25); g1->SetMarkerSize(1.3); g1->SetPoint(0,1147, 5.45); g1->SetPoint(1,1747, 4.29); g1->SetPoint(2,2247, 4.04); g1->SetPoint(3,2897, 4.08); g1->SetPointError(0,0,0.16); g1->SetPointError(1,0,0.14); g1->SetPointError(2,0,0.09); g1->SetPointError(3,0,0.10); g2 = new TGraphErrors(4); g2->SetLineColor(2); g2->SetLineWidth(2); g2->SetLineStyle(1); g2->SetMarkerColor(2); g2->SetMarkerStyle(21); g2->SetMarkerSize(1.3); g2->SetPoint(0,1147, 4.58); g2->SetPoint(1,1747, 3.73); g2->SetPoint(2,2247, 3.33); g2->SetPoint(3,2897, 3.02); g2->SetPointError(0,0,0.14); g2->SetPointError(1,0,0.13); g2->SetPointError(2,0,0.08); g2->SetPointError(3,0,0.07); g3 = new TGraphErrors(4); g3->SetLineColor(6); g3->SetLineWidth(2); g3->SetLineStyle(1); g3->SetMarkerColor(6); g3->SetMarkerStyle(24); g3->SetMarkerSize(1.3); g3->SetPoint(0,1147, 4.48); g3->SetPoint(1,1747, 3.83); g3->SetPoint(2,2247, 3.18); g3->SetPoint(3,2897, 3.10); g3->SetPointError(0,0,0.14); g3->SetPointError(1,0,0.13); g3->SetPointError(2,0,0.08); g3->SetPointError(3,0,0.07); g4 = new TGraphErrors(4); g4->SetLineColor(1); g4->SetLineWidth(2); g4->SetLineStyle(1); g4->SetMarkerColor(1); g4->SetMarkerStyle(20); g4->SetMarkerSize(1.3); g4->SetPoint(0,1147, 4.30); g4->SetPoint(1,1747, 3.83); g4->SetPoint(2,2247, 3.52); g4->SetPoint(3,2897, 3.31); g4->SetPointError(0,0,0.15); g4->SetPointError(1,0,0.12); g4->SetPointError(2,0,0.11); g4->SetPointError(3,0,0.10); EvsC1->SetMinimum(2.8); EvsC1->SetMaximum(5.); EvsC1->SetStats(0); EvsC1->GetXaxis()->SetTitle("TPC Drift Length/mm"); EvsC1->GetXaxis()->SetLabelSize(0.05); EvsC1->GetXaxis()->SetTitleSize(0.065); EvsC1->GetXaxis()->SetTitleOffset(1.0); EvsC1->GetYaxis()->SetNdivisions(505); EvsC1->GetYaxis()->SetTitle("rms_{90}/E_{jet} [%]"); EvsC1->GetYaxis()->SetLabelSize(0.05); EvsC1->GetYaxis()->SetTitleSize(0.065); EvsC1->GetYaxis()->SetTitleOffset(1.1); EvsC1->GetXaxis()->SetRange(2,13); EvsC1->Draw(" "); g1->Draw("ple same"); g2->Draw("ple same"); g3->Draw("ple same"); g4->Draw("ple same"); TLatex * tex = new TLatex(1800,4.75,"0.80<|cos#theta|<0.95"); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLatex * tex = new TLatex(1100,4.8,"a)"); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLegend *leg = new TLegend(0.2,0.18,0.4,0.38,NULL,"brNDC"); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL"," 45 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(25); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","100 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","180 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(6); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","250 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("length_end_sige.gif"); c1->SaveAs("length_end_sige.eps"); }